import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    key: 'modifyTime',
    title: '录入时间',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { key: 'inspectType', title: '检验类型' },
  { key: 'quantity', title: '检验数量(PNL)' },
  { key: 'drawingChangeChecks', title: '工程图变更检查' },
  { key: 'resinPlugHoleInkModel', title: '油墨型号' },
  { key: 'resinPlugHoleInkColor', title: '油墨颜色' },
  { key: 'result', title: '判定' },
  { key: 'ngNum', title: '不良数' },
  { key: 'ngRatio', title: '不良率' },
  {
    key: 'shiftType',
    title: '班别',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  { key: 'operator', title: '检验员' },
  { key: 'checker', title: '审核人' },
  { key: 'checkTime', title: '审核时间' },
  { key: 'remark', title: '备注' }
];
